package cn.yoyo.service;

import cn.yoyo.entity.SysUser;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UserService {
    public int addUser(SysUser user, MultipartFile file);

    public List<SysUser> findAll(Integer start, Integer num);

    public int freeze(Integer closed, Integer id);

    public int updatePassword(String password);

    public int updateImg(MultipartFile file);

    public int updateInfo(String nickname, String phone);

    public int addAdm(SysUser user);

    public int resetPassword(Integer id);

    public int findById(Integer id);

    public int getTotal();
}
